package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 特殊通道表单配置表
 *
 * @author chenzh
 * @since 2023-02-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_form_special_params")
@Schema(name = "EduFormSpecialParams", title = "特殊通道表单配置表", description = "特殊通道表单配置表实体类")
public class EduFormSpecialParams extends Model<EduFormSpecialParams> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "formSpecialConfigId", title = "特殊通道表单配置id")
    @TableId(value = "form_special_config_id", type = IdType.ASSIGN_ID)
    private String formSpecialConfigId;

    @Schema(name = "formSpecialId", title = "特殊通道id")
    @TableField(value = "form_special_id")
    private String formSpecialId;

    @Schema(name = "property", title = "属性名")
    @TableField(value = "property")
    private String property;

    @Schema(name = "propertyType", title = "属性类型")
    @TableField(value = "property_type")
    private String propertyType;

    @Schema(name = "param", title = "对应表字段名")
    @TableField(value = "param")
    private String param;

    @Schema(name = "description", title = "描述")
    @TableField(value = "description")
    private String description;

    @Schema(name = "fixedFlag", title = "是否固定字段")
    @TableField(value = "fixed_flag")
    private String fixedFlag;

    @Schema(name = "requiredFlag", title = "是否必填")
    @TableField(value = "required_flag")
    private String requiredFlag;

    @Schema(name = "max", title = "最大值")
    @TableField(value = "max")
    private Integer max;

    @Schema(name = "min", title = "最小值")
    @TableField(value = "min")
    private Integer min;

    @Schema(name = "defaultPhotos", title = "默认照片显示")
    @TableField(value = "default_photos")
    private String defaultPhotos;

    @Schema(name = "orderNo", title = "排序")
    @TableField(value = "order_no")
    private Integer orderNo;

    @Schema(name = "del", title = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "createName", title = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", title = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", title = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", title = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Override
    public Serializable pkVal() {
        return this.formSpecialConfigId;
    }
}
